package com.homework.collections;

public class test {
  public static void main(String[] args) {
    //
    Database database = new Database();

    database.insert("001", new student("张三", 19));
    database.insert("002", new student("张四", 29));
    database.insert("003", new student("张⑤", 22));
    database.insert("004", new student("张⑥", 17));
    System.out.println(database.toString());
    database.delete("002");
    System.out.println(database.toString());
    database.update("003",new student("六六",20));
    System.out.println(database.toString());
    System.out.println(database.search("004"));
  }
}
